package zencstudio.sgrealtor.view.common;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;

import zencstudio.sgrealtor.R;
import com.squareup.picasso.Picasso;

public class CloseConfirmDlg extends AlertDialog.Builder{

	public CloseConfirmDlg(final Activity arg0) {
		super(arg0);
		setTitle("");
		setMessage(R.string.exit_confirm);
		setPositiveButton("OK",new DialogInterface.OnClickListener() {
	        public void onClick(DialogInterface dialog, int whichButton) {
	        	try{
	        		Picasso.with(getContext()).shutdown();
	        	}
	        	catch(Exception ex){
	        		
	        	}
	             arg0.finish(); 
	        }
	   });
		setNegativeButton("Cancel",null);
		setCancelable(true);
	}

}
